package playgame;

import java.awt.image.BufferedImage;

/**
 * Objects used in the GUI.
 * 
 * The parent of the objects that are allowed to be used in the GUI.
 * 
 * @author Bomberman Crew 20(C)09
 * 
 */

public class GameObject {
	BufferedImage image;
	int height;
	int width;
	
	int cordX;
	int cordY;
	
	
	
	public int getCordX() {
		return cordX;
	}

	public void setCordX(int cordX) {
		this.cordX = cordX;
	}

	public int getCordY() {
		return cordY;
	}

	public void setCordY(int cordY) {
		this.cordY = cordY;
	}


	/**
	 * Constructor for GameObject.
	 * @param takes one BufferedImage as a parameter.
	 */
	
	public GameObject(BufferedImage image){
		this.image = image;
		height = image.getHeight();
		width = image.getWidth();
	}
	
	public GameObject(BufferedImage image, int x, int y){
		this.image = image;
		this.cordX = x;
		this.cordY = y;
	}
	
	public void setImage(BufferedImage image){
		this.image = image;
	}
	
	public void setHeight(int height){
		this.height = height;
	}
	
	public void setWidth(int width){
		this.width = width;
	}

	public BufferedImage getImage(){
		return image;
	}
	
	public int getHeight(){
		return height;
	}
	
	public int getWidth(){
		return width;
	}
}
